-----------------------------------
-- Ability: Aspir Samba II
-- Inflicts the next target you
-- strike with Aspir daze, allowing
-- all those engaged in battle with
-- it to drain its MP. 
-----------------------------------

require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/globals/magic");

-----------------------------------

function OnAbilityCheck(player,target,ability)
	if (player:hasStatusEffect(EFFECT_TRANCE)) then
		return 0,0;
	elseif (player:getTP() < 25) then
		return MSGBASIC_NOT_ENOUGH_TP,0;
	else
		player:delTP(25);
		return 0,0;
	end;
end;

function OnUseAbility(player, target, ability)

	player:delStatusEffect(EFFECT_HASTE_SAMBA);
	player:delStatusEffect(EFFECT_DRAIN_SAMBA);
	player:addStatusEffect(EFFECT_ASPIR_SAMBA,2,0,120);

end;